<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- 
	欢迎使用LSEAM框架！有任何问题可以联系作者：
	<a href="mailto:liuxj1011@163.com">liuxj1011@163.com</a>！<br/>
  	<a href="list.seam">&gt;&gt; 进入示例程序</a>  <a href="pageList.seam">&gt;&gt; 进入分页示例程序</a>
 -->
<html>
  <head>
    <title>LSEAM 示例程序</title>
  </head>
  <body>
  <table width="100%" border="1">
  	<tr>
  		<th>序号</th>
  		<th>用户ID</th>
  		<th>照片</th>
  		<th>登录名</th>
  		<th>登录密码</th>
  		<th>用户名</th>
  	</tr>
<c:forEach items="${pageResult.resultList}" var="prod" varStatus="lineInfo">
  	<tr>
  		<td>${lineInfo.count}</td>
  		<td><c:out value="${prod.userId}"/></td>
  		<td><img src="photo/${prod.userPhoto}" width="60" height="60"/></td>
  		<td><c:out value="${prod.loginName}"/></td>
  		<td><c:out value="${prod.loginPass}"/></td>
  		<td><c:out value="${prod.userName}"/></td>
  	</tr>
</c:forEach>
	<tr>
  		<td colspan="6">
  		每页${pageResult.pageRows}条 当前 第${pageResult.firstRow}-${pageResult.lastRow}条 共${pageResult.totalRows}条 <a href="?currentPage=1">首页</a> <a href="?currentPage=${pageResult.currentPage - 1}">上一页</a> <a href="?currentPage=${pageResult.currentPage + 1}">下一页</a> <a href="?currentPage=${pageResult.totalPages}">尾页</a> 当前 ${pageResult.currentPage} / ${pageResult.totalPages} 页
  		</td>
  	</tr>
  </table>
  </body>
</html>
